using Serilog;

namespace MoonFramework.Scripts.Tool.Log
{
    public static class LoggerManager
    {
        public static void RegisterLog(string address)
        {
            Serilog.Log.Logger = new LoggerConfiguration()
                .MinimumLevel.Debug()
                .WriteTo.Sink(new UnityDebugSink())
                .WriteTo.File($"logs/{address}.txt", rollingInterval: RollingInterval.Day)
                .CreateLogger();
        }
    }
}